﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Timing;

namespace Magicodes.WeChat
{
    public class EntityBaseWithFullAudited<TKey> :
        Entity<TKey>,
        IFullAudited,
        IMayHaveTenant
    {
        public EntityBaseWithFullAudited()
        {
            CreationTime = Clock.Now;
        }

        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public long? DeleterUserId { get; set; }
        public DateTime? DeletionTime { get; set; }
        public bool IsDeleted { get; set; }
        public int? TenantId { get; set; }
    }
}
